# coding=utf-8
from gevent import monkey
import sys

from app import create_app
monkey.patch_all()
application = create_app(flask_config = 'development')

reload(sys)
sys.setdefaultencoding('utf8')
if __name__ == "__main__":
    # if application.config['socketio_app']:
    #     socketio_app = application.config['socketio_app']
    #     socketio_app.run(app = application, host = '0.0.0.0', port = 5001, debug = False)
    # else:
    application.run(host = '0.0.0.0', port = 5001, debug = False)
